package com.big.app.controller;

import com.big.app.bo1.Paybo;
import com.big.app.service.intf.PayService;
import com.big.app.vo1.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * //       @author  GQ
 * //
 * //                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
 * //            __.'              ~.   .~              `.__
 * //          .'//                  \./                  \\`.
 * //        .'//                     |                     \\`.
 * //      .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
 * //    .'//.-"                 `-.  |  .-'                 "-.\\`.
 * //  .'//______.============-..   \ | /   ..-============.______\\`.
 * //.'______________________________\|/______________________________`.
 */
@RestController //@Controller+@ResponseBody
@RequestMapping("/api/mypay/") //映射地址
@CrossOrigin //跨域
@Api(value = "实现支付相关操作",tags = "实现支付相关操作")
public class PayController {
    @Autowired
    private PayService service;
    //创建
    @PostMapping("create.do")
    public R createPay(@RequestBody Paybo bo){
        return service.createPay(bo);
    }
}
